package com.lxm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author ${author}
 * @since 2024-10-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Cart implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 购物车ID，主键
     */
    @TableId(value = "cart_id", type = IdType.AUTO)
    private Long cartId;

    /**
     * 用户ID，外键
     */
    private Long userId;

    /**
     * 商品ID，外键
     */
    private Long itemId;

    /**
     * 商品数量
     */
    private Integer itemCount;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
